<include file='Public/header' />
<style>
	.content{
		width:90%;
		height:400px;
		margin-left:5%;
	}
	.left{
		float:left;
		padding-top:5%;
		width:60%;
		height:100%;
		margin-left:2%;
	}
	.right{
		width:50%;
		padding-top:5%;
		height:90%;
		margin-left:65%;
	}
	#pf{
		width:50%;
		margin-left:25%;
		font-size:30px;
	}
	#intro{
		width:90%;
		margin-left:5%;
	}
	#jqjj{
		width:50%;
		margin-left:35%;
	}
	#message_content{
		width: 90%;
	    margin-left: 10%
	}
	#message_title{
		width:50%;
		margin-left:36.5%;
	}
	.messagebox{
		width: 90%;
		margin-left:5%;
	}
    .usermessage{
    	width:40%;
    	float:right;
    }
	#fbly{
		width:90%;
		margin-left: 5%;
	}
	#fbutton{
		float:right;
		margin-right:2%;
	}
     #footer{
			width:100%;
			text-align:center;
	   }
	  #mainbody{
		width:80%;
		margin-left:10%;
	  }
</style>	
	<?php
		$picpath=str_replace("thumb_","",$good[0]['pic']);
	?>
	<div id="mainbody">
	<div class="content">
		<div class="left">
			<image src="__PUBLIC__/photo/{$picpath}" width="60%" height="100%">	
		</div>
		<div class="right">
		<table class="table table-striped">
			<tr><th><h3>产品名称</h3></th><td><h3>{$good[0]['name']}</h3></td></tr>
			<tr><th>分类</th><td>{$classname[0]['name']}</td></tr>
			<tr><th>评分</th><td><?php
				//echo $score;
			if(!$score){
					echo "暂无评分";
			}else{
				echo $score;
			}
		?></td></tr>
			<tr><th>单价</th><td>{$good[0]['price']}元/{$good[0]['danwei']}</td></tr>
			<tr><th>上架时间</th><td>{$good[0]['uploadtime']}</td></tr>
			<tr><th>已售出</th><td>{$good[0]['sum']}</td></tr>
			<tr><th>库存</th><td>{$good[0]['kucun']}</td></tr>
			</table>
		</div>
	</div>
	
	<div id="intro">
	<hr>
		<div id="jqjj"><h3>详细介绍</h3></div>
		<div>
		<?php
			
			echo html_entity_decode($good[0]['intro']);?>
		</div>	
	</div>
	<hr>
	<div id="message_title">
	<h3>评论信息</h3>
	</div>

	<div class="message_content">
		<volist name="meslist" id='vo'>
		<hr>
			<div class="messagebox">
				<p>{$vo.content}</p>
			</div>
			<div class="usermessage">
				<p>评分:{$vo.star} 用户:{$vo.uname} 时间:{$vo.pdate}</p>
			</div>
		</volist>
	</div>
</div>
<include file='Public/footer'/>
